import request from '@/utils/request'

// 登录接口
export function login(data) {
  return request({
    url: '/auth/local',
    method: 'post',
    data
  })
}

// 获取用户详情接口
export function getUserInfo() {
  return request({
    url: '/users/me',
    method: 'get'
  })
}

// 获取当前用户的权限
export function getMyPermissions() {
  return request({
    url: '/mypermissions',
    method: 'get'
  })
}
